home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Draw Editor / Source / DrawEditorConstants.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-11  |  1.8 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DrawEditorGlobals.h
  3.  
  4.     Contains:    DrawEditorGlobals globals
  5.  
  6.     Written by:    Dave Stafford
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _DRAWEDITORCONSTANTS_
  13. #define _DRAWEDITORCONSTANTS_
  14.  
  15. // Menu Commands
  16. // Command numbers for part editors must begin in the 20000's
  17. const ODCommandID kMoveForwardCmd             = 20000;
  18. const ODCommandID kMoveFrontCmd                = 20001;
  19. const ODCommandID kMoveBackwardCmd            = 20002;
  20. const ODCommandID kMoveBackCmd                = 20003;
  21. const ODCommandID kWrapToPartCmd            = 20004;
  22. const ODCommandID kDrawingSizeCmd            = 20005;
  23. const ODCommandID kShowHideToolPaletteCmd    = 20006;
  24. const ODCommandID kShowHideColorPaletteCmd    = 20007;
  25. const ODCommandID kNewShapeCommand            = 20008;
  26. const ODCommandID kColorSelectionCommand    = 20009;
  27. const ODCommandID kResizeSelectionCommand    = 20010;
  28. const ODCommandID kDragShapeCommand            = 20011;
  29. const ODCommandID kDropShapeCommand            = 20012;
  30.  
  31. // Resources
  32. #define    kBaseResourceID                20000
  33.  
  34. // Icons
  35. #define    kLargeIcons                    1
  36. #define    kSmallIcons                    2
  37.  
  38. // Shapes
  39. #define    kMinShapeWidth                15
  40. #define    kMinShapeHeight                15
  41.  
  42.  
  43. // Dialogs & Windows
  44. #define    kMacWindowTitleBarHeight    20
  45. #define    kALittleNudge                4
  46. #define    kMaxDigitsForSizeItem        2
  47.  
  48. // DITL IDs
  49. #define kErrStrFieldID                3
  50. #define kDrawingSizeWidth            4
  51. #define kDrawingSizeHeight            7
  52.  
  53. // PICT IDs
  54. #define    kActiveTextToolPict            kBaseResourceID + 2
  55. #define kInactiveTextToolPict        kBaseResourceID + 7
  56.  
  57. // Storage tag Constants
  58. const ODSShort kDrawSelection    = 1;
  59. const ODSShort kDrawDocument    = 2;
  60.  
  61. // Display Frames
  62. #define kFrameRemoved                    1
  63. #define kFrameClosed                    0
  64.  
  65. // Miscellaneous
  66. const ODBoolean kDontCommit             = kODFalse;
  67. const ODBoolean kCommit                 = kODTrue;
  68. const ODBoolean kAddSequenceNumber        = kODTrue;
  69. const ODBoolean kRemoveSequenceNumber    = kODFalse;
  70. const ODSShort    kBlackColor                = 256;
  71.  
  72. #endif